import java.util.ArrayList;
import java.util.Collections;


public class day_02_方法引用_1 {
    public static void main(String[] args) {
        // 引用静态方法
        ArrayList<String> list = new ArrayList<>();
        Collections.addAll(list, "1", "2", "3", "4", "5");

        //将字符类型转换为整数型
        list.stream()
                .map(Integer::parseInt)
                .forEach(s -> System.out.println(s));
    }
}
